//
//  WDAppUserRoutesRequest.m
//  wd-serviceapp
//
//  Created by Bin Tang on 2025/3/14.
//

#import "WDAppUserRoutesRequest.h"

@interface WDAppUserRoutesRequest ()
@property (nonatomic, assign) NSInteger userId;
@end

@implementation WDAppUserRoutesRequest

/// 初始化
/// - Parameter userId: userId description
- (instancetype)initWithUserId:(NSInteger)userId {
    if (self = [super init]) {
        self.userId = userId;
    }
    return self;
}

- (NSString *)requestUrl {
    return kTASK_APP_USER_ROTES;
}

- (TYZRequestSerializerType)requestSerializerType {
    return TYZRequestSerializerTypeHTTP;
}

- (TYZRequestMethod)requestMethod {
    return TYZRequestMethodGET;
}

- (id)requestArgument {
    NSDictionary *params = @{@"userId":@(self.userId)};
    return params;
}

- (Class)rspClass {
    return [WDAppUserRoutesModel class];
}

@end
